#include "game.h"

void Initboard(char board[ROW][COL], int row, int col)
{
	int i = 0;
	int n = 0;
	for (i = 0; i < row; i++)
	{
		for (n = 0; n < col; n++)
		{
			board[i][n] = ' ';
		}
	}
}
void Displayboard(char board[ROW][COL], int row, int col)
{
	int i = 0;
	int n = 0;
	for (i = 0; i < row; i++)
	{
		for (n = 0; n < col; n++)
		{
			printf(" %c ", board[i][n]);
			if (n < col - 1)
				printf("|");
		}
		printf("\n");
		if (n < row - 1)
		{
			int i = 0;
			for (i = 0; i < col; i++)
			{
				printf("---");
				if (i < col - 1)
					printf("|");
			}
		}
		printf("\n");
	}
	
}